package com.service;

import java.sql.SQLException;

import com.domain.User;

public interface LoginService {

	/**
	 * 登录
	 * 
	 * @param login
	 * @return
	 */
	public int login(User login);

	/**
	 * 获取登录用户信息
	 * 
	 * @param login
	 * @return
	 */
	public User getUserInfologin(User login);

	/**
	 * 修改密码
	 * 
	 * @param user
	 * @param pwd1
	 * @param pwd2
	 * @return
	 * @throws SQLException
	 */
	public boolean modPwd(User user, String pwd1, String pwd2)
			throws SQLException;

	/**
	 * 重置密码
	 * 
	 * @param user
	 * @param pwd
	 * @return
	 * @throws SQLException
	 */
	public boolean resetPwd(String username, String pwd) throws SQLException;
}
